package com.project.business.tools;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;

/**
 * 
 * @copy by/ huangxiaoping /my.jar
 * @modify by xiaoxiaosu
 * 
 */
public class SpringUtil {
	public static void setApplicationContext(ApplicationContext arg0) {
		SpringBeanProxy.setApplicationContext(arg0);
	}

	/**
	 * @return applicationContext
	 */
	public static ApplicationContext getApplicationContext() {
		return SpringBeanProxy.getApplicationContext();
	}

	public static Object getBean(String beanName) throws BeansException {
		return SpringBeanProxy.getBean(beanName);
	}

	public static <T> T getBean(String beanName, Class<T> t)
			throws BeansException {
		return SpringBeanProxy.getBean(beanName, t);
	}
}
